<div id="mainColumns">
	<h2>このクラスの決済情報一覧を見る</h2>
		<div class="transactionCourse">
			<h3><?php echo $courseDetail['Course']['title'];?></h3>
			<div class="halfBox">
				<p><span class="title">開催日時</span><br /><?php echo $this->Time->format('Y/m/d', $courseDetail['CourseDetail']['opening_date']);?></p>
				<p><span class="title">参加費用</span><br />¥&nbsp;<?php echo number_format($courseDetail['CourseDetail']['price']);?></p>
				<p><span class="title">支払い方法</span><br />
				<?php foreach ($courseDetail['PaymentMethod'] as $payment):?>
				<?php echo $payment['payment_method'];?>&nbsp;
				<?php endforeach;?>
				</p>
			</div><!--
						--><div class="halfBox">
			<p><span class="title">参加人数合計</span><br /><?php echo intval($courseDetail['CourseCounting']['entered_counting']);?>/<?php echo $courseDetail['CourseDetail']['attend_total'];?></p>
			<p><span class="title">回収済み参加費用</span><br />
				<?php echo number_format(intval($courseDetail['CourseCounting']['entered_counting']) * $courseDetail['CourseDetail']['price']);?>/<?php echo number_format($courseDetail['CourseDetail']['attend_total'] * $courseDetail['CourseDetail']['price']);?>
			</p>
		</div>
		</div>
		<?php echo $this->element('transactions', array('transactions' => $transactions));?>
</div>
<div id="subColumns">
	<?php echo $this->Form->create('CourseTransaction', array('url' => array('controller' => 'CourseTransaction', 'action' => 'view', $courseDetail['CourseDetail']['id']), 'type' => 'get'));?>
		<div class="section">
			<div class="rows select">
				<p><label for="searchLimit">検索結果数</label></p>
				<select name="limit" id="searchLimit">
					<option value="25">25</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
			</div>
		</div>
		<div class="section">
			<div class="rows" id="payment">
				<p>決済ステータス</p>
				<input type="radio" name="payment" id="paymentFault" value="0" <?php if (isset($this->params['url']['payment']) && $this->params['url']['payment'] === '0'):?>checked="checked"<?php endif;?> /> <label for="paymentFault">失敗</label><br />
				<input type="radio" name="payment" id="paymentSuccess" value="1" <?php if (isset($this->params['url']['payment']) && $this->params['url']['payment'] === '1'):?>checked="checked"<?php endif;?> /> <label for="paymentSuccess">成功</label><br />
				<input type="radio" name="payment" id="paymentAll" value="" <?php if (!isset($this->params['url']['payment']) || $this->params['url']['payment'] === ''):?>checked="checked"<?php endif;?> /> <label for="paymentAll">全てのクラス</label>
			</div>
			<div class="rows" id="delete">
				<p>決済情報を削除しますか？</p>
				<input type="radio" name="delete" id="deleteNo" value="0" <?php if (isset($this->params['url']['delete']) && $this->params['url']['delete'] === '0'):?>checked="checked"<?php endif;?> /> <label for="deleteNo">削除されていないユーザ</label><br />
				<input type="radio" name="delete" id="deleteYes" value="1" <?php if (isset($this->params['url']['delete']) && $this->params['url']['delete'] === '1'):?>checked="checked"<?php endif;?> /> <label for="deleteYes">削除されたユーザ</label><br />
				<input type="radio" name="delete" id="deleteAll" value="" <?php if (!isset($this->params['url']['delete']) || $this->params['url']['delete'] === ''):?>checked="checked"<?php endif;?> /> <label for="deleteAll">全てのクラス</label>
			</div>
		</div>
	<?php echo $this->Form->end('検索');?>
</div>